<div class="tableToolbar">
    <div class="coll-md-8" id="addInput">
        <div class="coll-md-1">
            <input type="text" class='search' placeholder="项目名称" ng-model="ctrlScope.itemsearch.itemname">
        </div>
        <div class="coll-md-15">
            <input type="text" class='search' placeholder="用户名/真实姓名" ng-model="ctrlScope.itemsearch.name">
        </div>

        <div class="coll-md-3 scalenone" id="searchdate" datahide>
            <div class="coll-md-5">
                <p class="input-group">
                    <input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDateTimex" is-open="popup1.opened"
                           datepicker-options="dateOptions"
                           ng-minlength="1"/>
                    <span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDateTimex" is-open="popup2.opened"
                           datepicker-options="dateOptions"
                           ng-minlength="1"/>
                    <span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-1">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon"
                       data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="coll-md-2">
        <!--<input type="button" class="bttn pos-left" ng-click="addOrderModal()" value="新建">-->
        <!--<button class="small-icon btn btn-default pos-right"  ng-click="download()">-->
        <!--<i class="fa fa-download"></i>-->
        <!--</button>-->
    </div>
</div>
<div style="width:100%;overflow-x: auto">
    <table ui-table="orderParams" bordercolor="#eee" cellspacing="0px" style="border-collapse:collapse;">
        <thead>
        <tr>
            <th>id</th>
            <th>包名称</th>
            <th>状态</th>
            <th>添加时间</th>
            <th>更新时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>

        <tr ng-repeat="item in orderParams.$rows" style="text-align: left">
            <td>{{item.id}}</td>
            <td>{{item.packageName}}</td>
            <td ng-if="item.status==1">等待审核</td>
            <td ng-if="item.status==2">计划进行中</td>
            <td ng-if="item.status==3">已结束</td>
            <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
            <td>{{item.updatetime | date:'yyyy-MM-dd HH:mm:ss'}} </td>
            <td style="padding:4px 20px 4px 4px;">
                <a ng-if="item.status==1" ng-click="modifyModal(item.id)">审核</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<modal title="审核" visible="showPage">
    <form class="form-horizontal" role="form" name="myForm" ng-submit="submitForm(myForm.$valid)" novalidate>
        <div class="form-body">
            <div class="tab-content" style="margin-top:10px;">
                <table ui-table="orderParams2">
                    <thead>
                    <tr>
                        <th>项目id</th>
                        <th>项目名称</th>
                        <!--<th>公司名称</th>-->
                        <th>借款周期</th>
                        <th>借款金额</th>
                        <th>项目利率</th>
                        <th>还款方式</th>
                        <th>添加时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in orderParams2.$rows">
                        <td>{{item.id}}</td>
                        <td>{{item.itemName}}</td>
                        <!--<td>{{item.itemSecondName}}</td>-->
                        <td>{{item.itemCycle}}{{item.itemCycleUnit | cycleUnit}}</td>
                        <td>{{item.itemAccount}}</td>
                        <td>{{item.itemRate}}%</td>
                        <td>{{item.itemRepayMethod | repayMethod}}</td>
                        <td>{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>
                    </tr>
                    </tbody>
                </table>
                <div class="row" style="margin-top:15px">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label class="control-label col-md-4">每份金额<strong class="error"
                                                                              ng-if="myForm.eachAmount.$invalid">&nbsp;(必填)</strong></label>
                            <div class="col-md-8">
                                <select class="form-control" name="eachAmount" ui-select2="select2Options" ng-model="ctrlScope.first.eachAmount" required>
                                    <option value="">请选择</option>
                                    <option value="100">100</option>
                                    <option value="200">200</option>
                                    <option value="500">500</option>
                                    <option value="800">800</option>
                                    <option value="1000">1000</option>
                                    <option value="1200">1200</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <input type="hidden" class="form-control" name="content" ng-model="ctrlScope.first.content" required>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="form-group">
                            <label class="control-label col-md-2">内容<strong class="error"
                                                                            ng-if="myForm.content.$invalid">
                                &nbsp;(必填)</strong></label>
                            <div class="col-md-10" required>
                                <div style="margin-bottom:1.25rem;height: 300px" class="ueditor"
                                     ng-model="ctrlScope.first.content"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="buttonArea col-md-12">
                <button type="submit" class="btn blue" ng-disabled="myForm.$invalid">提交</button>
            </div>
        </div>
    </form>
</modal>
